package com.we.flink.userlabelplatform.table;

public class TableUserMember {
    public static final String KFKTABLE = "fdm.hhl01_user_member";
    public static final String QUERYSQL =
            "select uid, if(end_time is null, -1, end_time) end_time, "
                    + " if(updated_at is null, 0, updated_at) as updated_at from "
                    + KFKTABLE;

    public long uid;
    public int end_time;
    public int updated_at;

    public TableUserMember() {}

    public TableUserMember(long uid, int end_time, int updated_at) {
        this.uid = uid;
        this.end_time = end_time;
        this.updated_at = updated_at;
    }

    public long getUid() {
        return uid;
    }

    public int getEnd_time() {
        return end_time;
    }

    public int getUpdated_at() {
        return updated_at;
    }

    @Override
    public String toString() {
        return "TableUserMember{"
                + "uid="
                + uid
                + ", end_time="
                + end_time
                + ", updated_at="
                + updated_at
                + '}';
    }
}
